﻿using Swimj.DomainLib.Entities;

namespace BaseData.DomainLib.AggregatesModel.CalculateUnitAggregate
{
    public class CalculateUnit : AuditableAggregateRoot<int>
    {
        public string? Code { get; set; }

        public string? Name { get; set; }

        public string? Description { get; set; }

        public CalculateUnit()
        {
        }

        public CalculateUnit(string? code, string? name, string? description) : this()
        {
            Code = code;
            Name = name;
            Description = description;
        }

        public void Update(string? name, string? description)
        {
            Name = name;
            Description = description;
        }
    }
}